﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Interpreter;


namespace LogoScriptIDE
{
	public class Varforwatch
	{
        private ObservableCollection<Varforwatch> _children = new ObservableCollection<Varforwatch>();

        /// <summary>
        /// 存储表示此变量可能拥有的子成员，即子树，children为当前Varforwatch的根节点
        /// </summary>
        public ObservableCollection<Varforwatch> Children
        {
            set { _children = value; }
            get { return _children; }
        }		

		// 分别表示每个变量的属性
        public string Name { get; set; }
        public string Type { get; set; }
		public string Value { get; set; }
        public string Remark { get; set; }

        public Varforwatch()
		{
            this.Reset();
		}

        public void Reset()
        {
            Value = "";
            Type = "";
            Remark = "Not Exist";
            _children.Clear();
        }

	}
}